package com.w2cx.selenium.testCase;

import org.omg.CORBA.PUBLIC_MEMBER;
import org.testng.Assert;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;

public class testOpreatePositionManage extends CaseBase {

    @Test
    @Parameters({"opreatePositionTitle"})
    //测试增加运营位
    public void testAddOpreatePosition(String opreatePositionTitle){
        opmp.addOpreatePosition(opreatePositionTitle);
        Assert.assertTrue(opmp.addPoreatePositionSuccess(opreatePositionTitle),"添加运营位失败！");
        System.out.println("添加运营位成功！");
    }


    @Test
    @Parameters({"opreatePositionTitle"})
    //测试删除运营位
    public void testDelOperatePosition(String opreatePositionTitle){
        opmp.delPosition(opreatePositionTitle);
        Assert.assertTrue(opmp.delPositionSuccess(opreatePositionTitle),"删除运营位失败！");
        System.out.println("删除运营位成功！");
    }


}
